package com.pp.demo.module.api.service;

import com.pp.demo.module.api.entity.SeckillActivity;
import com.pp.demo.module.api.entity.SeckillOrder;

import java.util.List;

public interface SeckillService {

    List<SeckillActivity> getActiveSeckillActivities();

    boolean checkStock(Long activityId);

    SeckillOrder processSeckill(Long userId, Long activityId);

    String getSeckillResult(Long orderId);
}
